﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using F2S.LINQ2LinkedIn.Model;

namespace F2S.LINQ2LinkedIn.Model
{
    [DebuggerDisplay("Total={Total}, Headers.Count=[{Headers.Count}]")]
    [XmlRoot("headers")]
    [XmlInclude(typeof(HttpHeader))]
    public class HttpHeaderCollection
    {
        [XmlAttribute(AttributeName = "total")]
        public int Total { get; set; }

        [XmlElement(ElementName = "http-header")]
        public HttpHeader[] Headers { get; set; }

        public override string ToString()
        {
            return string.Format("Total={0}, Headers={1}", Total, Headers);
        }
    }
}
